package com.systop.front.owner.controller;


import com.systop.commer.ResponseResult;
import com.systop.commer.pojo.Banner;
import com.systop.commer.pojo.Bus;
import com.systop.commer.pojo.Driver;
import com.systop.front.owner.service.OwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class OwnerController {
    @Autowired
    private OwnerService ownerService;

    @RequestMapping(value="/bannerliststate",method= RequestMethod.POST)
    public @ResponseBody
    ResponseResult bannerliststate(){
        int banner_state=1;
        List<Banner> list =  ownerService.bannerliststate(banner_state);
        if (list == null) {
            return ResponseResult.build(500, "查看失败");
        } else {
            return ResponseResult.build(200, "查看成功", list);
        }
    }
}
